#include "cbitwindow.h"

namespace buola { namespace bitviewer {

CBitWindow::CBitWindow()
{
    mList=new gui::CListView;
    mList->SetListViewDelegate(this);
    Place(mList);
    mCell=new CDownloadCell;
    Place(mCell);
}

gui::PWindow CBitWindow::GetListViewCell(gui::CListView *pListView, int pSection, int pPos)
{
    return nullptr;
}

int CBitWindow::GetListViewCellCount(gui::CListView *pListView, int pSection)
{
    return 0;
}

void CBitWindow::OnLayout()
{
    mList->Map({0,0},{Size().x,200});
    mCell->Map({0,200},{Size().x,100});
}

/*namespace bitviewer*/ } /*namespace buola*/ }

using namespace buola;

int main(int pNArgs,char **pArgs)
{
    buola_init(pNArgs,pArgs);
    bitviewer::CBitWindow lWindow;
    lWindow.Map(CSize_d(300,500));
    buola_main_loop();
    return buola_finish();
}
